package io.gitee.zhangbinhub.acp.boot

import io.gitee.zhangbinhub.acp.boot.init.AcpInitialization
import io.gitee.zhangbinhub.acp.boot.log.LogAdapter
import io.gitee.zhangbinhub.acp.boot.listener.AcpApplicationStartupListener
import org.springframework.boot.autoconfigure.AutoConfiguration
import org.springframework.context.annotation.Bean

/**
 * @since JDK 17
 */
@AutoConfiguration(after = [AcpComponentAutoConfiguration::class])
class AcpSetUpAutoConfiguration {
    @Bean
    fun acpApplicationStartupListener(logAdapter: LogAdapter, initializationList: MutableList<AcpInitialization>) =
        AcpApplicationStartupListener(logAdapter, initializationList)
}